package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author personcoder007
 * @since 2022-08-17
 */
@Getter
@Setter
@ApiModel(value = "Exam对象", description = "")
public class Exam implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("考试名称")
    private String name;

    @ApiModelProperty("教室")
    private String classroom;

    @ApiModelProperty("考试时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private String time;

    @ApiModelProperty("监考老师")
    private String teacher;


    @ApiModelProperty("考试状态")
    private String state;

    @ApiModelProperty("课程id")
    @TableField("course_id")
    private Integer courseId;

//    开始时间
    @TableField("start_time")
    private Date startTime;

//    结束时间
    @TableField("end_time")
    private Date endTime;

    @ApiModelProperty("课程名称")
    @TableField(exist = false)
    private String corseName;

    @TableField(exist = false)
    private Integer total;

    /**
     * 审核
     */
    @TableField(exist = false)
    private Boolean enable;

    @TableField("druation")
    private Integer druation;

}
